package com.rayson.yututu.util;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rayson.yututu.common.PageRequest;

/**
 * Author: rayson
 * Description:
 * Version: 1.0
 * Date: 2024-12-19 23:08
 */
public class PageUtil {

    public static <T> Page<T> getPage(PageRequest pageRequest) {
        return new Page<>(pageRequest.getPageNum(), pageRequest.getPageSize());
    }
}
